<?php
echo $this->Html->css(array('plugins/chosen/chosen','plugins/multiselect/multi-select','plugins/datepicker/datepicker'),null,array('inline'=>false));
echo $this->Html->script(array('plugins/chosen/chosen.jquery.min','plugins/datepicker/bootstrap-datepicker'),array('inline'=>false));
?>
<?php echo $this->Form->create('Season',array('class'=>'form-vertical')); ?>
<?php echo (empty($new) && $new != 1)? $this->Form->input('id') : '';?>
<div class="span12 nomargin">
    <div class="control-group">
        <div class="controls-row">
            <div class="controls span4 nomargin">
                <?php echo $this->Form->input('anime_id',array('label'=>array('text'=>'Nome do Anime','class'=>'font-strong'),'class'=>'span12 chosen-select','id'=>'',"data-placeholder"=>"Escolha um Anime",'div'=>false,'empty'=>true)); ?>
            </div>
            <div class="controls span4">
                <?php echo $this->Form->input('situation_id',array('label'=>array('text'=>'Situação','class'=>'font-strong'),'class'=>'span12 chosen-select',"data-placeholder"=>"Defina uma Situação",'div'=>false,'empty'=>true)); ?>
            </div>
            <div class="controls span4">
                <?php echo $this->Form->input('rating_id',array('label'=>array('text'=>'Avaliação','class'=>'font-strong'),'class'=>'span12 chosen-select',"data-placeholder"=>"Faça uma Avaliação",'div'=>false,'empty'=>true)); ?>
            </div>
        </div>
    </div>
    <div class="control-group">
        <div class="controls-row">
            <div class="controls span4 nomargin">
                <?php echo $this->Form->input('name',array('label'=>'Temporada / Arco','class'=>'span12','placeholder'=>'Primeira','div'=>false)); ?>
            </div>
            <div class="controls span4">
                <?php echo $this->Form->input('release_year',array('type'=>'text','label'=>array('text'=>'Ano de Lançamento','class'=>'font-strong'),'class'=>'span12 datepick nomarginbottom','readonly'=>'readonly',"data-date-viewmode"=>"years",'data-date-minviewmode'=>"years",'data-date-format'=>"yyyy ",'div'=>false)); ?>
            </div>
            <div class="controls span4">
                <?php echo $this->Form->input('release_date',array('type'=>'text','label'=>'Data de Lançamento','class'=>'span12 datepick nomarginbottom','readonly'=>'readonly','data-date-format'=>"dd/mm/yyyy",'div'=>false)); ?>
            </div>
        </div>
    </div>
    <div class="control-group">
        <div class="controls-row">
            <div class="controls span3 nomargin">
                <?php echo $this->Form->input('dow_episodes',array('label'=>array('text'=>'Episodios Assistidos','class'=>'font-strong'),'class'=>'span12','min'=>'0','div'=>false)); ?>
            </div>
            <div class="controls span3">
                <?php echo $this->Form->input('full_episodes',array('label'=>array('text'=>'Total de Episodios','class'=>'font-strong'),'class'=>'span12','min'=>'1','div'=>false)); ?>
            </div>
            <div class="controls span3">
                <?php echo $this->Form->input('start_season',array('label'=>array('text'=>'Inicio da Temporada','class'=>'font-strong'),'class'=>'span12','min'=>'0','div'=>false)); ?>
            </div>
            <div class="controls span3">
                <?php echo $this->Form->input('end_season',array('label'=>array('text'=>'Fim da Temporada','class'=>'font-strong'),'class'=>'span12','min'=>'1','div'=>false)); ?>
            </div>
        </div>
    </div>
    <div class="control-group">
        <div class="controls-row">
            <div class="controls span12">
                <?php echo $this->Form->input('url',array('label'=>'Links','class'=>'span12','id'=>'','div'=>false)); ?>
            </div>
        </div>
    </div>
    <div class="form-actions">
        <div class="controls span1 check-line">
            <label class="inline hover" for="c5">Status</label>
            <?php echo $this->Form->input('status',array('label'=>false,'div'=>false,'id'=>"c5",'class'=>'icheck-me pull-right','data-skin'=>"square",'data-color'=>"blue")); ?>
        </div>
        <?php echo $this->Form->button('<i class=" icon-ok"></i> Concluir',array('class'=>'btn btn-primary','div'=>'false','escape'=>false)); ?>
        <?php echo $this->Html->link('<i class="icon-reply"></i> Cancelar',array('controller'=>'seasons','action'=>'index'),array('escape'=>false,'class'=>'btn btn-danger '))?>
    </div>
</div>
<?php echo $this->Form->end(); ?>
